Action of an automorphism of order p on cohomology groups of an algebraic curve