A former British soldier who claimed a traumatic flashback caused him to touch a woman’s backside in the gym has won his appeal against a sexual assault conviction.