A man has been jailed for five years for a string of sexual offences against children dating back to the 1980s.