Barclays’ customers were unable to withdraw cash or access their online bank accounts at the weekend due to a computer glitch.

The bank refused to give any more information about the technical issue, and did not reveal how many customers had been affected.

A spokesperson for Barclays said: “It was treated as a priority, we acted swiftly and the systems were restored as soon as possible.”

The problem started at about 2pm on Saturday afternoon, and Barclays said it was resolved after 20 minutes. The glitch prevented customers from using their debit and credit cards for making purchases, withdrawing cash at ATMs or access their online bank accounts. Telephone banking was also affected.

According to the Press Association, the problem is believed to have been caused by a power failure.

Barclays experienced an IT failure last October, which also hit online banking, ATMs and in-branch banking.

It was recently revealed that Barclays stripped data from wire transfers, in order to evade US sanctions, at a processing centre in Poole.

Earlier this year, Barclays said it will invest £1bn in retail technology and branch refurbishment over the next four years, in addition to offshoring more jobs.