Dementia drug flunks major study