Juul, the company with 70 percent of the e-cigarette share in the United States, has agreed to stop selling its flavored pods in stores and to shut down its social media campaigns.