Hypnosis is the most effective way of giving up smoking, according to the largest ever scientific comparison of ways of breaking the habit.