We study the problem of optimal placement of energy storage devices in a distribution network to minimize network losses. A continuous tree with power flow equations is developed to model the distribution network. We analyze structural properties of the optimal solution when all loads have the same shape. We prove that it is optimal to place storage devices near the leaves of the network away from the substation, and that the scaled storage capacity monotonically increases towards the leaves.