US stocks end with losses as Trump announces new tariffs for some countries