US stock market closes with losses as volatility persists