Former Cairns swim coach formally recorded as sex offender after appeal court overturns sentencing error