Stability, Generalization and Privacy: Precise Analysis for Random and NTK Features