Egypt’s new president to take oath before court