Electronic properties of the dimerized one-dimensional Hubbard model using lattice density-functional theory