Iranian President Hassan Rouhani says Muslims must work to improve the world's opinion of Islam, which he says has been tarnished by violence.