Some Twitter staff return to offices in New York, San Francisco