The S&P 500's gains since Election Day have been wiped out as stocks racked up more losses Tuesday as a trade war between the U.S. and its key trading partners escalated.