High street lender TSB has apologised to customers after many were left without benefit and salary payments for hours due to a systems error.