South African runner Caster Semenya wins partial victory in appeal against ruling by the Court of Arbitration for Sport.