Mahama sworn in as Ghana president