Ukraine is pressing for EU membership as its counteroffensive against Russia has stalled, according to its military chief of staff.