Record rainfall causes flash flooding in Sydney