Mateta hat-trick as Mainz finally win