Dynamical mean-field theory and numerical renormalization group study of superconductivity in the attractive Hubbard model