President Yoweri Museveni has been declared the winner of Thursday's election extending his four decades in power by another five years.