Wells Fargo on Friday surpassed Wall Street expectations in third-quarter earnings and revenue as the benefit from higher interest rates offset declining loan balances.