Trump denied any connection between his departure from the G7 summit and the proposal for a ceasefire between Israel and Iran