Phase diagram of 4D field theories with chiral anomaly from holography