On the final size of epidemics within herds