Livestock market turnover has topped £3bn for the first time, as throughput rose despite a shrinking national herd and flock.