The percentage of people in long-stay nursing homes has declined, partly because assisted-living facilities and home health care, which depend substantially on informal caregiving, are being used more.