Former Ripon teacher jailed for 12 years for child sexual abuse