Leaders of the G7 group of rich nations have said they will back Ukraine for "as long as it takes"