What caused Greece to be divided into small, independent communities?