Uncertainty quantification in control problems for flocking models