A Pakistani court has ordered that five of the 14 men arrested for child sexual abuse will remain in custody for up to 28 days.