The UK economy grew by 0.1% in August, reversing a decline in July, according to data released on Thursday by the Office for National Statistics (ONS).