Investors around the world stepped up their retreat from stocks and piled into haven assets like government bonds and gold, reflecting escalating worries that the coronavirus will crimp global growth. The Dow industrials and the S&P 500 erased their gains for the year.