ANU, UNSW to cut hundreds of staff