EU countries must mutually recognise same-sex marriages, ECJ rules