G7 tackles foreign fighters as EU helps shut ‘terror’ route