Stocks tumbled on Tuesday, reversing the prior session’s gains.