West Yorkshire Police sacked and barred its highest number of officers in 2023-24 for at least six years, new figures show.