Samia Suluhu Hassan was officially sworn in as Tanzania's president on Monday following a contentious election that triggered deadly protests across the country.