The contribution of the ARIEL space mission to the study of planetary formation