Miralem Pjanic has signed a new five-year contract to commit his future to Juventus, the midfielder having been linked with clubs including Barcelona and Manchester United.