There will not be a Wales-wide ban on mobile phones in schools, First Minister Rhun ap Iorwerth has said.