Retail money flows into funds adhering to an environmental, social and ethical investment framework have fallen sharply since peaking in 2021.