Swimmers have been urged to avoid 19 beaches across the UK due to serious health concerns.