What were some the factors that contributed to the decline of the Roman Republic due to the increasing influence and authority of military leaders?