HERSCHEL EXPLOITATION OF LOCAL GALAXY ANDROMEDA (HELGA). III. THE STAR FORMATION LAW IN M31