The underperformance, market participants say, owes just as much to a broader shift in the mindset among foreign investors