Phase transitions in the graphite intercalation compound C24Rb