Negotiations to reset the UK's post-Brexit relationship with the EU are going "to the wire", a Cabinet Office minister has said.