Barclays will cut about 5,000 jobs by year-end as AI replaces operational roles. Pre-tax profit still rose 12% to £2.3bn.