Transcription factors regulate enhancer-promoter contact dynamics in differentiation and disease