It's worth noting that many allergy meds (like diphenhydramine) are anticholinergic, but only ones which pass the blood-brain barrier are linked to cognitive decline. So newer allergy meds like cetirizine and loratadine are better.
Your link says anticholinergic use later in life has been linked to cognitive decline, not that use by young people results in cognitive decline later in life.
I linked to Wikipedia, but I originally read the abstract of a different study, which might have examined diphenhydramine specifically rather than many anticholinergic drugs. The abstract of the article cited on Wikipedia makes it clear that it's a cumulative effect, and that they studied outcomes in older adults. So I think Wikipedia describes the research incorrectly.
It's worth noting that many allergy meds (like diphenhydramine) are anticholinergic, but only ones which pass the blood-brain barrier are linked to cognitive decline. So newer allergy meds like cetirizine and loratadine are better.