Towns look for ways to block medical-marijuana dispensaries