A rapidly escalating trade war has socked stocks as investors weigh the fallout from President Trump’s tariff barrage.