Generating the curvature perturbation without an inflaton