Gross domestic product increased by 0.5% between April and June, the Office for National Statistics said.