Social isolation can trigger sugar and cigarette cravings, but socialising may offer relief, a study in rats has shown.