Accounting lapses and suspected employee fraud lead to the bank's first quarterly loss in nearly two decades, with leadership changes and regulatory scrutiny underway.