Analysts said that a surprise contraction in retail sales should not be cause for too much doom and gloom as retailers are still basking in a return from their pandemic slumps.

A contraction of 0.8% in May of sales by value may have been against the increase that had been forecast, but it compares to April, which had seen a massive increase.

“Oddly, the reason behind the decline isn’t that alarming – with lockdown easing, more people were spending money in restaurants, rather than buying food in supermarkets or online,” said Spreadex analyst Connor Campbell.

Lynda Petherick at Accenture said: “Despite a slight monthly decline on April, May nonetheless marked another month of progress for the retail sector, with sales still much higher than March 2021 and figures at the onset of the pandemic in February 2020.”

Yet, although May’s figures are not alarming in themselves, there is some evidence that the spending boom that followed reopening might be slowing further, said Samuel Tombs, chief UK economist at Pantheon Macroeconomics.

He pointed to Bank of England data showing that by one measure credit and debit card payments were 5% below their 2020 levels in the week to June 10, compared to just 1.5% down in May.

“In addition, OpenTable data show that restaurant diner numbers peaked in the second half of May and subsequently have nearly returned to normal levels for the time of the year,” he said.

Susannah Streeter, analyst at Hargreaves Lansdown, said that the data included some potentially concerning figures for the high streets.

While footfall at retail parks is back to 98% of its 2019 levels, high streets are only at 76% of 2019 footfall, and shopping centres are faring worse still.

“It’s still unclear if this will be a long term trend or just temporary until shoppers receive the confidence boost of double vaccinations before they cram into smaller shops once more,” Ms Streeter said.

“For now though many high streets remain quieter compared to before the crisis hit, which will make filling empty shops an even harder task.”