Iranian director Mohammad Rasoulof has said he has fled to Europe after being sentenced to eight years in prison ahead of the Cannes Film Festival of his film.