Foreign investors bought record shares in April, invested 11,631 crores