Scientists have discovered that a simple writing test could detect cognitive impairment in older adults before more serious symptoms develop.