French President Francois Hollande is set to reshuffle his cabinet after the government suffered humiliating losses in local elections.