Former US President Barack Obama is set to make his first visit to Scotland next month when he addresses business leaders in Edinburgh.