China takes new foreign investment top spot from US