Anomalous Hall effect in graphite