European Union leaders say they are determined to maintain unity despite Britain's decision to leave the bloc.