Lewis Hamilton has revealed he was in a "low place" during his first season at Ferrari before he "rebuilt" himself to go on and take his first Grand Prix victory in red on Sunday.