Former UK prime minister says it is right time to go, which will trigger byelection that Greens’ Zack Polanski could target