How tech tumbled in the US stock market’s worst week in two years