Role of frustration in quantum spin chains and ladders: A field theory approach