Delayed-onset dementia after stroke or transient ischemic attack