Peru foreign minister resigns following US visit controversy