Energy and broadband customers lost an estimated £298 million and 27.3 million hours to poor customer service in a year, watchdog Which? has estimated.