Isotope effects in the Hubbard-Holstein model within dynamical mean-field theory