Barclays has apologised to customers after an outage stopped customers accessing their accounts and making payments.