Syrian state media reported on Thursday that a ceasefire had been agreed in the last rebel bastion in the country, the northwest, where aid agencies say a government offensive is growing bloodier.