Canonical perturbation theory of Anosov systems and regularity results for the Livsic cohomology equation