A class-action lawsuit accuses Apple of releasing a "defective" device in the AirTag tracker which has been used to stalk people.