Shoppers have been warned to take care when buying children's toys online after many were found to be illegal and dangerous.