The mayor and council shall have power to regulate the distribution and use of water in all places and for all purposes where the same may be required and from time to time shall fix the price for the use thereof and the time of payment and may erect such number of public hydrants and in such places as they shall see fit, directing in what manner and for what purposes they shall be used, and all of which they may change at their discretion. They shall have power and authority to require the payment in advance for the use and rent of water furnished by them in or upon any building, place, or premises, and in case prompt payment shall not be made, they may shut off the water from such place, building, or premises and shall not be compelled again to supply such place, building, or premises with water until said arrears, with interest thereon, shall be promptly paid, except as otherwise provided by general law.