Smokers can be taught to control craving, study says