US stocks end lower after failing to recover