Former National Security Adviser appears in court after being accused of sharing confidential data with his family