Finite primitive permutation groups containing a permutation having at most four cycles