The European Union and Britain have agreed a draft text of a Brexit withdrawal agreement and Prime Minister Theresa May will present it to her senior ministers on Wednesday.