The city or town council has power to provide for the planting of trees and the protection of the same.