Barclays profits rise 23% as dealmaking returns