Fonseka lost last month 's election to President Mahinda Rajapaksa , but the retired general and his allies allege the polls were rigged .