Boris Johnson has insisted it is still “possible” for Britain to leave the EU on 31 October – just hours after Sajid Javid ruled out doing so.