Foreign investors are fleeing Indian equities at a record clip as a global retreat from riskier assets and concerns over surging energy costs overshadow the nation’s long-term growth story.