Appearing to comment on political crisis at annual Independence Day event at his official residence, president expresses optimism, stresses 'internal work' on society still needed