Iran’s president says decision to end war ‘must guarantee people’s security, interests’