Virological mechanisms of viral persistence, resolution and reinfection