The chairman and four directors of ERCOT, the agency that runs Texas’ electricity grid, have resigned after the grid failed catastrophically during a cold snap that swept through the state and left millions without power for days last week, according to a filing.