Cohomology with coefficients in stacks of Picard categories