Quitting smoking in later life lowers dementia risk by 16%, but only if weight gain is limited to less than 5 kg, new study finds.