US stocks end mixed, Nasdaq falls