US stock markets close day with losses amid ongoing AI concerns