High-energy resummation in heavy-quark pair hadroproduction