Facebook profits rise despite tax hit