Decline in foreign direct investment into R&D a worrying trend