New York state has banned the sale of flavored e-cigarettes amid growing national concern about the safety of the products.