Liz Truss will become Britain's shortest-serving prime minister ever, after announcing her intention to resign just six