Smartphone app encourages physical activity, study finds