U.S. banks are struggling with a problem most people would love to have: too much cash.

But the flood of deposits into U.S. financial firms, at a time when many lenders are having difficulty making new loans, spells trouble for the industry as banks prepare to post fourth-quarter numbers.

Wells Fargo & Co., the largest U.S. bank by market...