ENH: `ward_tree` returns distances

Returns distances for both structured and unstructured version,
and they are equal for both versions.

Added test under test_hierarchical.