Search for high-mass diphoton states and limits on Randall-Sundrum gravitons at CDF