Content placement in networks of similarity caches