UK food sales picked up last month, despite a poor June, according to data from the British Retail Consortium (BRC).