Shares slump on foreign selling