The Herschel Virgo Cluster Survey. VI. The far-infrared view of M 87