Optimal mechanical interactions direct multicellular network formation on elastic substrates