The once banned moderate Islamist party Ennahda has won Tunisia's first elections since the Arab Spring.