What were some of the key factors that contributed to the decline of the Roman republic?