Sir Keir Starmer has said that if Labour fail to secure a general election they will support all options including a public vote.