Ukrainian president says he was willing to step down in exchange for Nato membership