A financial lifeline will not be thrown to troubled shipbuilder Harland & Wolff (H&W) by the government due to a "very substantial risk that taxpayer money would be lost", it has been announced.