The age–metallicity relationship in the Fornax spheroidal dwarf galaxy