New York Post says it was hacked after publishing numerous offensive headlines and tweets