A sharp quantitative estimate for the perimeters of convex sets in the plane