Man charged after alleged attempt to take a child in Port Macquarie