Catalunya WRC: Loeb fends off Ogier to win rally