Computing the cohomology of compact arithmetic manifolds