Deal to reduce Accra’s debt load by nearly $5bn could pave the way for return to markets