Dementia linked to loss of smell early warning sign