After disassembling the front assembly, as per Carel's and Davorin Ruševljan's suggestions, I found out that the fork tube (going through the headtube) had a crack in it, which is most probably what was making the creaking noise (see picture below).
!enter image description here