A former Sinn Fein press officer has been jailed after admitting child sex offences.