At Detroit debate, Trump on defense for changing positions