Uefa president Michel Platini will resign after failing to have a football ban overturned by the Court of Arbitration for Sport.