Global foreign investment declines for second year as geopolitical tensions rise, UN trade body reports