Anomalous dimensions and the Adler-Bardeen theorem in supersymmetric Yang-Mills theories