Elastically-Induced Precipitate Shape Transitions in Coherent Solids