Evolutionary branching of host resistance induced by density-dependent mortality