Chancellor’s departure shows the prime minister intends to brook no dissent