Texts 'help smokers to quit habit'