Minimax optimal goodness-of-fit testing for densities under a local differential privacy constraint