Multiwavelength study of Cygnus A – II. X-ray inverse-Compton emission from a relic counterjet and implications for jet duty cycles