North Korea wrapped up its first ruling party congress in nearly four decades with twin mass parades in the capital Pyongyang.