New Ghana president sworn in after predecessor dies