Syrian President Bashar Assad in a rare public appearance presented a plan for ending the country’s deadly civil war, but called his opponents “terrorists” and made clear he had no intention of leaving office, presenting himself as his people’s protector.