Republican lawmaker who livestreamed himself storming the Capitol has resigned