Wells Fargo chief risk officer is leaving after four years