Researchers have developed a device that may allow patients to take a brief, inexpensive test that could be administered as part of a routine yearly checkup at a doctor’s office to detect mild cognitive impairment — often the earliest stage of Alzheimer’s.