Hubble space telescope ACS weak-lensing analysis of the galaxy cluster RDCS 1252.9-2927 at z=1.24