The dual relationship between polypharmacy and frailty in nursing home residents: polypharmacy as a cause or a consequence?