Groups in which elements with the same p-power permute