A class of reductions of the two-component KP hierarchy and the Hirota–Ohta system