Faulty component and the crew's attempt to fix it were among the factors that caused an AirAsia jet to crash last year, a report says.