On p-groups of Frobenius type