A shares slump as investors bale out