The former Italy manager Cesare Prandelli will take charge of Valencia after agreeing a contract until 2018