Ringgit extends losses against US dollar at close