Validity of the generalized Curie—Weiss law in ferromagnetic systems with ‘frozen’ disorder