Magnetic tricritical point and nematicity in FeSe under pressure