Anomalies and entanglement renormalization