Helping younger people deal with issues like obesity and depression could reduce the risk of dementia