Quantum electrodynamics on a lattice: A Hamiltonian variational approach to the physics of the weak-coupling region