Exclusive production of heavy flavours in proton-antiproton annihilation