Content-Based Image Retrieval from Weakly-Supervised Disentangled Representations