Density-dependent effects of prey defences