Barclays has unveiled bigger profits after a stronger year for its investment bank, as its boss said he was “deeply apologetic” to customers affected by the recent technology outage.