Real abelian varieties with complex multiplication