Italy has threatened to stop foreign boats carrying migrants rescued in the central Mediterranean Sea from docking in its ports unless other EU countries do more to help.