Study of impurity retention in the scrape-off layer of the FTU tokamak