A Hamiltonian lattice formulation of the nonlinear σ-model