Solar activity cycles and grand minima occurrence