The dollar fell sharply against major currencies and the S&P 500 tumbled more than 4% while the Nasdaq composite dived more than 5%.