The Office for National Statistics said retail sales volumes declined by 0.5% in July, compared with the previous month.