The US president will use the G7 summit in Britain to call on allies to combat Beijing’s influence.