Investment bank and mortgage woes weigh on Barclays