The Work and Pensions Secretary announces his resignation just seconds after polls close in Local and European elections.