Region’s early society likely switched often between egalitarian and hierarchical rule, study hints