Integrability of a Hubbard-like model: lattice analogue of the δ-function interacting gas