The energy regulator Ofgem said its quarterly price cap would go up by £21 a year, or about £1.75 a month, for a typical household’s gas and electricity use.