Investors pulled more than $14b from sustainable funds this year, after tightened regulatory oversight, higher interest rates that have slammed clean-energy stocks and a backlash that has made ESG investing a political target.