Inflation and gauge hierarchy in Randall-Sundrum compactification