Former prime minister resigns with an angry tirade after being told he will be sanctioned for misleading Parliament over Covid-era parties