Stability analysis of the two-phase torsional rigidity near a radial configuration