The 47th president of the United States was sworn in earlier at a ceremony that took place indoors due to bad weather.