Boris Johnson says he is “not attracted” to new levies, but does not rule out a windfall tax on energy firms.