Mean-field description of the order-disorder phase transition in ferronematics