Friends know how long you’ll live, study finds