After years of leading mutual fund inflows, thematic schemes are losing investors as volatile markets, fading narratives and tighter regulation reshape the category.