Using social media is harder to resist than picking up a cigarette and smoking it, a new study finds.