John Kerry sworn in as US secretary of state