This phenomenon is called regelation. Applying pressure lowers the melting point of ice, causing a thin layer of water to form. When the pressure is released, the water refreezes, and the strong network of hydrogen bonds is re-established, uniting the cubes.