Rayner's resignation prompts broader cabinet reshuffle, with House of Commons leader and Scotland secretary sacked.