Members of the public were advised not to swim at a section of Littlehampton beach after sewage was discharged into the water.