Barclays could pay out up to £12.5million in compensation to customers affected by service outages over the last two years.