A flat is the subject of a closure order after police received reports of violence, drug dealing and anti-social behaviour.