Liz Truss has resigned as prime minister after just 45 days in office