Hassan Rouhani has won Iran’s 12th presidential election, receiving a popular mandate for another four years in presidential office.