Sir Paul McCartney has dismissed claims he declined to take part in a documentary about a Russian attack on Greenpeace due to security fears.