Texans re-sign Garrett Graham to three-year deal