On the Cauchy problem for planar autonomous Hamiltonian Systems with a discontinuous right-hand side