People are living longer, but spending more years in poor health