From small towns that barely dot the map to the state’s largest urban areas, revenue from retail marijuana sales is helping communities address homelessness, send children to college, patch potholes, secure water rights and fund an array of projects.