Sri Lanka says it recovered several bodies and rescued 32 wounded sailors after the frigate sank.