Lawyers gear up for busy period as UK votes to leave EU