The average house cost rose by 2.7 per cent in May, the Office for National Statistics said.