The scattering problem for Hamiltonian ABCD Boussinesq systems in the energy space