Roche ends bid to buy diagnostics firm