A quantitative Weinstock inequality for convex sets