Donald Trump's early departure from the G7 was entirely in keeping with a president semi-detached.