Anisotropy of electronic correlations: On the applicability of local theories to layered materials