Barclays swings back to profit in first quarter amid strategic overhaul