Origin and Evolution of Large-Scale Magnetic Fields of Chemically Peculiar Stars. I. Intermediate-Age Clusters