Anderson Acceleration in Nonsmooth Problems: Local Convergence via Active Manifold Identification