Drift-preserving numerical integrators for stochastic Hamiltonian systems