Year-on-year retail sales in the UK grew by 3.4% during October, according to the Office for National Statistics (ONS).