Yatsenyuk warns of war as he is voted Ukraine’s premier