NSW Department of Premier and Cabinet accused of misleading parliament over emails to inquiry