President Donald Trump’s abrupt decision to slap steel and aluminium tariffs on Canada, Mexico and the European Union capped a whipsaw week that reflected not just the deep divisions among his top economic advisers, but the changeable attitudes of the irascible and unpredictable president himself.