Having close friends and family has far-reaching benefits for your health. Here's how to build and maintain these essential relationships.