At least 17 people were injured when two elephants went on a rampage during a religious parade in Sri Lanka.