Charmonium spectrum and diffractive production in a light-front Hamiltonian approach