Two properties have been ordered to close after a police crackdown on “anti-social behaviour and drug activity hotspots.”