Shared mechanisms for cognitive impairment and physical frailty: A model for complex systems