The prime minister has welcomed the first hostages being released by Hamas under a ceasefire deal as he called for a cooling of community tensions in Australia.