The boss of energy regulator Ofgem has called for more powers to make sure customers rather than investors get compensated when suppliers go bust.