Locality of Distributed Graph Problems