Risk factors for mortality of residents in nursing homes with Covid-19: a retrospective cohort study