Retail sales growth in the UK slowed during July due to a fall in consumer confidence, according to the British Retail Consortium (BRC).