Persistence and endemicity of pathogens in plant populations over time and space