G7 adopts global infrastructure plan in riposte to China