North Korea says it is ready for war with the US in comments by its foreign ministry that were read out on state-run television.