Maharashtra tops in FDI, gets 31% of total investment