US: Hurricane Harvey weakens as flood threat rises