Magnetic relaxation in ferronematics in the mean-field description