Self-consistent effective-one-body theory for spinless binaries based on post-Minkowskian approximation I: Hamiltonian and decoupled equation for $$\psi _4^{\rm{B}}$$