Ringgit ends flat against US dollar