Replica-symmetry breaking in the critical behaviour of the random ferromagnet