Cognitive transitions based on functional status in older adults with heart failure: a population‐based study