US stocks end mostly lower after higher-than-expected producer inflation data