Trade deal reached four and a half years after British voters elected to leave the EU.