Countries around the world have threatened to wage a trade war with the United States as President Donald Trump’s sweeping tariffs fed expectations for a global downturn and sharp price hikes for swathes of goods in the world’s biggest consumer market.