Tiemoue Bakayoko's difficult time at Chelsea is over after the midfielder agreed a one-year loan move to Serie A side AC Milan.