A simple brain training task performed for just over a month could reduce dementia risk by as much as a quarter, a world-first study has found.