Golden State Warriors' Kevin Durant has apologised for comments he made on twitter that criticised his former team, the Oklahoma City Thunder.