The role of frailty and comorbidities in severe infections and the risk of dementia: a prospective, multicohort, observational study | Synapse