Heavy flavour production at high energies