Sony Pictures “made a mistake” in deciding to shelve a film about a plot to assassinate North Korean leader Kim Jong Un even though the studio suffered significant damage in a hacking attack the FBI blames on the secretive Communist regime, US President Barack Obama has said.