Taking time to think kind thoughts about yourself and loved ones has psychological and physical benefits, new research suggests.