Interactions between species and the structure of helminth communities