But leadership rival Boris Johnson says the UK will leave the EU on 31 October “come what may”.