Accelerated action and intensive work is needed to avoid a “disorderly and unjust transition” when Scotland’s only oil refinery closes, a report has warned.