A combination of the Trump trade fallout and growing optimism for China’s recovery fuels a sharp shift in foreign investment flows away from India