what kind of government was the roman republic