Alzheimer's disease can be detected decades before onset, using a virtual reality test, a study suggests.