Ukraine's prime minister resigns after allies pull out of coalition