US stock markets end mixed