House prices in the United Kingdom rose at a slower rate in June than in May, as higher inflation squeezed household budgets, but the average price of a home still set a new high.