The president of Sri Lanka has rejected the Government's attempt to scrap a law in the country that prevents women from buying alcohol.