AC Milan confirms that coach Gattuso is leaving the club