Exact dynamical mean-field theory of the Falicov-Kimball model