Rapper ‘very thankful’ to be given chance to enter mental health diversion program after arrest in LA last year