Persistence of vertically transmitted parasite strains which protect against more virulent horizontally transmitted strains