QCD transverse-momentum resummation in gluon fusion processes