US lawmaker says he has been diagnosed with cancer