H shares battered as market takes a dive