BPS invariants of the projective plane and modular forms