Yemen’s warring parties have agreed to a prisoner swap that will allow thousands of families to be reunited, United Nations special envoy Martin Griffiths said in Sweden on Thursday.