US stocks end week mostly lower following downbeat economic data