President U Htin Kyaw has resigned.