Chinese swimming star Sun Yang was banned for more than four years on Tuesday for breaking anti-doping rules after a retrial at the Court of Arbitration for Sport.