Syrian President Bashar Assad has told the UN that attacks on protesters by the military and police have stopped.