Risk factors for hospitalization and death due to COVID-19 among frail community-dwelling elderly people: a retrospective cohort study