during this period sagasta was president of the government five times