Boris Johnson has said he is “cautiously optimistic” of getting a Brexit deal as he prepares for talks with European Commission president Jean-Claude Juncker.