New Zealand has introduced legislation to ban under-16s from social media, with platforms facing fines of up to 10% of global revenue for failing to enforce the rules.