A song Kylie Minogue had planned to record with Prince has emerged online more than three decades after they started working on it.