Francois Hollande has been sworn in as president of France, becoming the first Socialist leader in 17 years to occupy the Elysee Palace.