A house which was the centre of illegal drug use and anti-social behaviour has been closed down by police.