Brazil introduces law restricting smartphone use in schools amid concern over the impact on learning