The way in which allegations of serious sexual assault were received when reported to the Labour Party is to be investigated by an independent inquiry.