Consistent Anomalies in Translation-Invariant Noncom-mutative Gauge Theories