Contrastive hashing with vision transformer for image retrieval