Emmanuel Macron has promised to restore France's global standing, as he was officially inaugurated as the country's youngest president.