Study reveals how to reduce frailty in nursing home residents