Thousands of Barclays customers were left unable to access their bank accounts after a computer glitch caused the system to seize up.