War and the rise of the state