A Democratic representative has said he will resign from Congress following sexual assault allegations.