US stocks end week mixed