Shocked EU vows unity after Brexit vote