Oil posts fifth week of gains on signals of tighter supply