Australia to hold same-sex marriages from January 2018