Uncertainty quantification for multigroup diffusion equations using sparse tensor approximations