Cosmic string loop distribution on all length scales and at any redshift