Adil Rashid has apologised for the comments he made about Yorkshire captain Andrew Gale and the way he has been treated by the county.