North Korea has abruptly cancelled UN Secretary General Ban Ki-moon's visit one day before he was due to arrive.