Former prime minister says UK is ‘sleepwalking to oblivion’ as Sadiq Khan says he is open to a unity government