US stocks down with weekly losses amid Ukraine war risks