OvaScience and its venture capital backer Longwood Fund have agreed to pay $15 million to resolve an investor class action saying the Massachusetts fertility company's alleged misrepresentations about the success of a new treatment eventually led to shareholder losses.