Discontinuous Galerkin Approximation of Relaxation Models for Linear and Nonlinear Diffusion Equations