The uptick helped the economy grow by 0.7% over the three months to August, official figures show.