Tunisia's 88-year-old anti-Islamist Beji Caid Essebsi was sworn in as the country's first freely elected president at a ceremony in parliament on Wednesday.