The annual rate of house price growth accelerated to 2.4% on average in July, Nationwide Building Society said.