On $q$-derangement numbers