The French President Francois Hollande has performed sword dance in his controversial visit to the Saudi capital, Riyadh.