The Scottish Greens said wild swimmers should be able to swim or bathe in seas or lochs without fear of picking up illness or infection.