describe how disease affects cognition