Quora, the question-and-answer website, has suffered a breach exposing emails of customers.