Deviations of trajectory averages and the defect in Pesin’s formula for Anosov diffeomorphisms