A former Sinn Fein press officer has been jailed for nine months after pleading guilty to a series of child sex offences.