Ferrari's Lewis Hamilton was left frustrated after he could only qualify 12th for the Las Vegas Grand Prix.