An inverse curvature flow in space forms