Chaos in the sunspot cycle: Analysis and prediction