Dynamic binding of replication protein a is required for DNA repair