Transcription-dependent regulation of replication dynamics modulates genome stability