Hamilton child sex offender jailed for 10 years