Lewis Hamilton apologised to his Ferrari team for his costly decision to override their strategy call during the Singapore Grand Prix.