US stocks down, heading for weekly losses