Banks' unrealized losses rose by a third last year and have stayed elevated as the Federal Reserve raised interest rates.