Tests of quantum gravity-induced non-locality: Hamiltonian formulation of a non-local harmonic oscillator