Rio shares dive as lithium project ditched