US stocks end Tuesday mixed