Retail sales volumes rose 0.7% in October, driven by buying of long-life food such as tinned goods and UHT milk, the Office for National Statistics (ONS) said. The figures followed a 0.6% fall in September and beat some economists' expectations of a slight decline.

The ONS linked the increase to the government's emergency preparedness "Be Ready" campaign. The campaign urged people to stock up in case severe weather or cyberattacks disrupted essential services. It recommended keeping three days' worth of food and water at home, along with wet wipes, a torch and cash.

ONS chief economist Grant Fitzner said: "Supermarkets have told us that sales of long-life food items such as tinned food and UHT milk were boosted by the government's 'Be Ready' campaign." He added: "Meanwhile fuel sales have been recovering from earlier low levels, despite pump prices rising again."

Visits to art galleries and clothing purchases also rose in October, the ONS said.

Separate research from retail research firm Worldpanel by Numerator found that people were stocking up on items including tinned meat, bottled water and hand sanitiser. That research suggested households were stockpiling essentials but not panic buying.

Jacqui Baker, partner and head of retail at auditing firm RSM UK, said retailers would want to end the year on a strong note before consumers become more cautious in the New Year. She said energy costs were rising and inflation was climbing further. Typical energy bills are forecast to rise by £443 per year from January.

Inflation rose to 3.6% in October, mainly because of higher petrol and diesel prices. The BBC report attributes the recent rise in energy and fuel costs to the Iran war.

Separately, the ONS said government borrowing was £17bn in October, £0.8bn higher than a year earlier but slightly below analysts' forecasts of about £18bn. Debt interest payments reached £11.2bn, the highest October figure on record, which the report attributes to higher inflation affecting index-linked government bonds.