Anomalous Hall effect and weak localization corrections in a ferromagnet