New York Stock Exchange ends week with losses