The city or town council has power to provide for enclosing, improving, and regulating all public grounds belonging to the city or town.