Donald Trump has threatened the European Union with trade cuts over a proposal to grant Canada associate membership.