Cosmological perturbations with multiple scalar fields