Politicians close to French president Francois Hollande say he has a right to privacy like everybody else, after a French magazine alleged he is having an affair with actress Julie Gayet.