Scotland ended two years without a win in the under-20s Six Nations with a well-deserved bonus point 27-12 triumph over Wales at Hive Stadium.