Transocean signs agreement to purchase Ocean Rig for $2.7bn