CMA partially upholds appeal on energy distribution licence changes