Social networks and health status: a longitudinal analysis