Two-thirds of patients with heart failure have cognitive problems, according to new research.