Saudi Arabia has begun an investigation after a crane collapsed in the Muslim holy city of Mecca, killing 107 people.