The department has supervision of sanitation, healthfulness, and safety of the public beaches and public water-contact sport areas of the ocean waters and bays of the state and, except as provided in Section 18930, the department may make and enforce regulations pertaining thereto as it deems proper.