The shape of the contact–density function matters when modelling parasite transmission in fluctuating populations