Barclays hits record annual profit as dealmakers outperform