A former West Yorkshire Police officer has been jailed for a number of offences including perverting the course of justice after a drink-driving crash.