Asymptotic results for weighted means of random variables which converge to a Dickman distribution, and some number theoretical applications