Emergence of inflationary perturbations in the CSL model