Energy regulator Ofgem today (Thursday) has launched an investigation into the markets in electricity and gas for households and small businesses.