Retail sales fell by 1.2% between June and July after the wet weather hit clothing sales and the cost of living weighed on food shoppers.
The Office for National Statistics (ONS) said it was a particularly bad month for supermarkets.
“The summer washout combined with the increased cost of living meant sluggish sales for both clothing and food,” it said.
Department stores also reported falling demand for household goods.
Illustrating how much prices have risen, the ONS said that compared to February 2020 – the last full month before Covid struck – total retail sales were 16.4% higher by value but 1.8% lower in the volume of goods people bought.
Earlier this week, new figures showed that inflation, which measures the rate at which prices are rising, slowed again to 6.8%. However, food prices are still increasing at a high rate.
The ONS said sales volumes at supermarkets fell by 2.6% in July after a rise in June.
It said “some of the fall was because of the poor weather reducing summer clothing sales. However, food sales in supermarkets also fell back”.
Ruth Gregory, deputy chief UK economist at Capital Economics, said she was cautious about reading too much into the retail sales figures since it “had a lot to do with last month being the sixth wettest July since records began in 1836”.
“But with the Bank of England’s interest rate hikes still feeding through and consumer confidence falling, we remain downbeat on the outlook for overall spending this year,” she said.
For some retailers, the poor weather meant customers changed what they bought.
Gary Grant, founder and chairman of The Entertainer toy retailer, told the BBC’s Today programme that parents had spent more on items to keep children occupied during the rain.
He said that while its outdoor toy sales were “substantially down” on a year ago, “our indoor sales, whether that be our stationery items, our craft items, our puzzles, our games, things that you would need to keep your children occupied in the house, those sales have increased”.