G7 agrees coordination mechanism to help Ukraine