Allies become rivals as Sri Lanka elects next President