Hereditary conjugacy separability of right angled Artin groups and its applications