Iranian President Hassan Rouhani has offered to broker peaceful negotiations between the Syrian government and opposition forces after more than two years of war.