Japan's gross domestic product for the January to March period shrinks for the first time in two quarters amid coronavirus restrictions and weak personal consumption.