The US President has threatened to walk away from the landmark 2015 accord unless 'terrible flaws' in it are fixed.