Syria's government has agreed to allow aid into the besieged rebel-held village of Madaya, the UN says, amid reports of residents starving.