Distance estimate and progenitor characteristics of SN 2005cs in M51