The activity cycles of stars