Perturbations in k-inflation