US stocks kick off 2024 with losses as mega-cap tech drags down broader market