War elephants can only be upgraded from captured elephants.
Horse archers are a fairly cheap tech on the 6th(?) tier of the tech tree, so if you took a nature/archery route, by the time they become a problem you could have access to:
Longbowmen: Same cost, +25% city +25% hill defence, 30%...