The corporate authorities of each municipality may regulate the anchorage and landing of all water craft and their cargoes.