The Tory leader has said the party would change the law so no further powers could be transferred to Brussels.