Put down the delivery app—cooking may help lower dementia risk.