Smokers who switched to e-cigarettes were much more likely to quit than people who used nicotine patches, gum or similar products, according to a large study.