Analysis of a model for macroparasitic infection with variable aggregation and clumped infections