Some 600 migrants have been rescued by Italian coastguards after their vessel ran into problems in rough seas off the island of Lampedusa.