A gunman who took two people hostage in a post office in Colombes, a suburb of northwest Paris, has been arrested after giving himself up to police.