European Court says prime minister had right to privacy over affair with single mother