Tech giant Apple has said its computers were attacked by the same hackers that targeted Facebook last week