David Davis says parliament will be given time to debate and vote on the final agreement