People who view life with a sense of purpose and who set goals are less likely to develop Alzheimer's disease or dementia, new research indicates.