The EU would refuse to open trade talks with Britain after a no-deal Brexit until the UK decided to sign up to the main elements of the withdrawal agreement anyway, the European Commission has said.