Invasion and persistence of infectious agents in fragmented host populations