The CP-conserving two-Higgs-doublet model: the approach to the decoupling limit