Iran blank Costa Rica to finish top of group