Australia will allow gun owners to hand in illegal firearms without penalty next month as concerns grow over crimes involving such weapons.