Prime Minister Boris Johnson said he does not want an election and promised the UK will leave the EU on 31 October "no ifs or buts".