Wells Fargo to pay $24M to end mortgage probe