Reduce frailty to lower dementia, study finds