Investors have started buying up shops and offices in London rather than houses in order to turn a profit.