Inability to smell peppermint linked to dementia, study says