Constrained minima for non local functionals