Man handed jail term for perverting course of public justice