The Scottish and UK governments have been blamed for pursuing a ban on new petrol and diesel cars for forcing Petroineos to close its Grangemouth oil refinery, axing 400 jobs.