Ofgem has delivered changes to energy supply rules that will give consumers more clout in the energy market.