Regular pay rose by 7.8% in May to July compared with the same period last year, official figures show.