Wells Fargo beats profit estimates but struggles on expenses