General Motors has announced it will withdraw from the Indonesian market by the end of March 2020 following years of poor performance.