∗-cohomology, Connes-Chern characters, and anomalies in general translation-invariant noncommutative Yang-Mills