Many smartphone apps are just as good as wearable devices at tracking physical activity, a new study suggests.