Electronic nematicity above the structural and superconducting transition in BaFe2(As1−xPx)2