Best average age? Now who wants anything that is average???????? lol. Personally, I like to use cocks that are under 6 years of age.
The secret is to always have youth on one side of the breeding equation: cock x pullet or stag x hen. Breeding an old hen with an old cock gives very poor...
Though cocks as young as 3 should be fine there could still be a problem with this particular cock: injury, too much fat, genetic, etc.
You will also see cocks that are not as fertile during the hottest days of summer/ coldest in winter and, of course, during the moult.
Yes they can lose their fertility. Age? Depends; like in humans one man is infertile at 30 and another can still reproduce at 65.
They (cocks) can also come in and out of fertility during the year.