Hypnosis may conjure up images of stage magic and swinging pocket watches, but there’s growing evidence that it can be useful for easing pain, relieving anxiety, relaxing patients before surgery and helping people control habits like overeating and smoking.