AI risks repeating social media era’s mistakes: Microsoft president