Boris Johnson has “absolutely” ruled out calling a general election before the UK leaves the European Union on October 31.