The consultant, which said it would cease most operations in the United States and Britain, relied on Facebook data to profile and target voters during the 2016 campaign.