While many of us focus primarily on diet and exercise to achieve better health, science suggests that our well-being also is influenced by the company we keep.