Retail sales registered their fourth month in a row of growth in August, the Office for National Statistics (ONS) said on Friday.

Spending in shops and online rose by 0.8% between July and August. Analysts had forecast growth of 0.7%. Compared to a year earlier, retail sales were up 2.8% in August. Economists had expected annual growth of 3%.

The data showed a continued solid rebound in consumer spending, which began after shops were allowed to reopen in June.

Retail sales surged back to pre-pandemic levels in June and sales grew far faster than economists had expected in July.

Michael Hewson, chief market analyst at CMC Markets, said the government’s Eat Out to Help Out scheme likely helped sales last month by increasing the number of people visiting city and two centres.

“Anecdotally, there were queues outside some restaurants in my local area, every Monday, Tuesday and Wednesday during August,” Hewson said ahead of the data.

“It would be a surprise therefore if we didn’t get a decent number for retail sales.”

Recent private sector data suggested the strong sales momentum had continued into August. The British Retail Consortium (BRC) last week said its spending tracker found sales up 4.7% in August, while data from credit card provider Barclaycard found consumer spending turning positive last month for the first time since the pandemic struck in March.

Clothing retailer Next this week upgraded its profit forecasts after better-than-expected sales and Primark said at the start of the month that spending at its stores had beaten internal projections.

READ MORE: Retailers warn more shops will close without return to office

The Bank of England said on Thursday that consumer spending was now back at levels last seen in January. The revival comes despite continued weakness in other parts of the economy, notably business investment.

Despite the recent data, the BRC warned last week that more job losses were likely in the UK retail sector as the majority of spending was going to online retailers at the expense of bricks-and-mortar shops.

“Government will need to act fast or September will see more shops close and more job losses realised,” BRC chief executive Helen Dickinson said last week.

The Confederation of British Industry last month said UK retailers were cutting jobs at the fastest rate since 2009. Big names such as Marks & Spencer (MKS.L), Dixons Carphone (DC.L), Debenhams, John Lewis and Boots have all announced thousands of job cuts between them since the pandemic struck.

In contrast, online players are hiring as digital shopping booms. Amazon (AMZN) recently announced it would hire 10,000 extra staff in the UK this year, growing its British workforce by a third.

Rishi Khosla, the chief executive of Britain’s fastest-growing bank, OakNorth, told Yahoo Finance UK he believes High Street retail will never return to pre-pandemic levels, with COVID-19 accelerating a permanent shift towards online shopping.