The growth in UK house prices continued in the year to June but at a slower pace than before, according to Office for National Statistics data.