The rate at which house prices were rising in the UK steadied in June, while tenants continued to be squeezed by soaring rents, according to new official figures.