Territorial public self -government as an element of institutionalization of local communities