Ilham Aliyev has secured a landslide victory in a snap presidential election that was boycotted by the main opposition parties.