Prevention of fouling with liquids by means of devices for containing or collecting said liquids