Libyan parties agree to hold constitutional referendum ahead of elections: UN