Ukraine PM offers to resign