Investing in long-term government bonds and mortgage-backed securities hurt the bank as interest rates rose and bond prices plummeted.