The governments of Sudan and South Sudan have signed an agreement to allow border trade between the two countries.