U.S., N. Korea agree to hold nuke talks