On the Hausdorff–Young theorem for commutative hypergroups