Host ploidy, parasitism and immune defence in a coevolutionary snail–trematode system