UK teacher becomes one of youngest people to die from dementia, aged 40