A kernel-based meshless conservative Galerkin method for solving Hamiltonian wave equations