Singular continuous spectrum under rank one perturbations and localization for random hamiltonians