Statistical distribution of the local purity in a large quantum system