South Korea and the US have unveiled an agreement to integrate Seoul into US strategic planning around deterrence and any response to attack from the North.