Metric spaces of partitions and Caccioppoli partitions