US stocks end mostly lower after weak retail sales data